﻿// Decompiled by AS3 Sorcerer 6.12
// www.as3sorcerer.com

//Pulsar

package 
{
    import flash.display.Graphics;
    import flash.events.Event;

    public class Pulsar extends Node 
    {

        private var _SafeStr_121:Sync = null;
        private var _SafeStr_273:Number = 0;
        private var _SafeStr_118:uint = 0;
        private var _SafeStr_274:int = 0;

        public function Pulsar(baseRadius:Number, baseAngle:int, color:uint, size:Number=4, rotDelta:int=0)
        {
            super(baseRadius, baseAngle);
            this._SafeStr_274 = size;
            this._SafeStr_118 = color;
            this._SafeStr_273 = ((rotDelta * Math.PI) / 180);
            this._SafeStr_121 = new Sync(0.3);
        }

        public function setSize(size:Number):void
        {
            this._SafeStr_274 = size;
        }

        override public function setBaseRadius(radius:Number):void
        {
            super.setBaseRadius(radius);
        }

        private function _SafeStr_93():void
        {
            var angle:Number;
            angle = (_SafeStr_32 + (Math.sin(this._SafeStr_121.phase) * this._SafeStr_273));
            this.x = (Math.cos(angle) * _SafeStr_33);
            this.y = (Math.sin(angle) * _SafeStr_33);
            this.rotation = ((angle * 180) / Math.PI);
            var g:Graphics = graphics;
            var r:Number = (((Math.sin(this._SafeStr_121.phase) * this._SafeStr_274) / 2) + this._SafeStr_274);
            g.clear();
            g.lineStyle(1, GUI.OUTLINE_COLOR);
            g.beginFill(this._SafeStr_118);
            g.drawCircle(0, 0, r);
            g.endFill();
            _SafeStr_34(r);
        }

        override protected function onEnterFrame(event:Event):void
        {
            this._SafeStr_121.tick();
            this._SafeStr_93();
        }

        override public function destruct():void
        {
            super.destruct();
        }


    }
}//package 

// _SafeStr_118 = "_-BS" (String#5202, DoABC#2)
// _SafeStr_121 = "_-Ao" (String#5173, DoABC#2)
// _SafeStr_273 = "_-6F" (String#4948, DoABC#2)
// _SafeStr_274 = "_-2U" (String#4774, DoABC#2)
// _SafeStr_32 = "_-CB" (String#5234, DoABC#2)
// _SafeStr_33 = "_-0A" (String#4663, DoABC#2)
// _SafeStr_34 = "_-Z" (String#5283, DoABC#2)
// _SafeStr_93 = "_-1j" (String#4736, DoABC#2)


